<?php defined('InTuntronKJ') or exit('Access Invalid!');?>


      <!--crumbs start-->
      <div class="crumbs">
        <ul>
          <li><span class="strong">当前位置：</span></li>
          <li><a href="#LotteryHall">首页</a></li>
            <li><a href="#UserProfitLoss">盈亏记录</a></li>
            <li><div id="li_hierarchy"></div></li>
        </ul>
        <div class="clear"></div>
      </div>
      <!--crumbs end--> 
      
      <!--list_main start-->
      <div class="list_main"> 
        <!--list_header start-->
        <div class="list_header"> 
          
         <!--list_nav start-->
          <div class="list_nav">
            <ul>
              <li class="current"><a href="#UserProfitLoss">盈亏报表</a></li>
              <li><a href="#UserProfitLossDetail">盈亏明细</a></li> 
            </ul>
            <div class="clear"></div>
          </div>
          <!--list_nav end-->
          
          <!--list_sort start-->
            <div class="list_sort">
                <div class="list_sort_item">
                    <div class="data_check">
                        <div class="dc_sub dc_split"><span>从</span></div>
                        <div class="dc_sub base_text">
                            <input type="text" class="datepicker" readonly="true" id="dateStart" value="2013-07-22" />
                        </div>
                        <div class="dc_sub dc_split"><span>至</span></div>
                        <div class="dc_sub base_text">
                            <input type="text" class="datepicker" readonly="true" id="dateEnd" value="2013-07-22" />
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="list_sort_item">
                    <div class="base_button">
                        <button id="btnSearch">筛选</button>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
          <!--list_sort end--> 
          
        </div>
        <!--list_header end--> 
        
        <!--list_table satrt-->
        <div class="list_table">
          <table>
            <thead>
             <tr class="dark">
                <th style="width:40px;">序号</th>
                <th style="width:100px;">用户名</th>
                <th>充值总额</th>
                <th>提现总额</th>
                 <th>投注总额</th>
                 <th>中奖总额</th>
                 <?php if($output['memberinfo']['type']){?><th>返点总额</th><?php }?>                 
                 <th>实际盈亏</th>
              </tr>
            </thead>
              <tbody>
                           <tr data-id="1">
                               <td class="center"><span class="gry">1</span></td>
                               <td class="center"><span class="base_orgen"><?php echo $output['member_list']['username']?></span></a></td>
                               <td class="center"><span class="base_blue"><?php echo number_format($output['member_list']['rechargeAmount'],2) ?></span></td>
                               <td class="center"><span class="base_blue"><?php echo number_format($output['member_list']['cashAmount'],2) ?></span></td>
                               <td class="center"><span class="base_blue"><?php echo number_format($output['member_list']['betAmount'],2) ?></span></td>
                               <td class="center"><span class="base_blue"><?php echo number_format($output['member_list']['zjAmount'],2) ?></span></td> 
                               <?php if($output['memberinfo']['type']){?><td class="center"><span class="base_blue"><?php echo number_format($output['member_list']['fanDianAmount'],2) ?></span></td><?php }?> 
                               <td class="center"><span class="base_blue"><?php echo number_format($output['member_list']['zjAmount']-$output['member_list']['betAmount']+$output['member_list']['fanDianAmount'],2) ?></span></td>                               
                           </tr>
              </tbody>
          </table>
        </div>
        <!--list_table end--> 
        
        <!--page_nav start-->
        <!--page_nav end-->  
        
      </div>
      <!--list_main end-->

<script type="text/javascript">
    var userprofitloss_BeginDate = "<?php echo $output['param']['beginDate'] ?>";
    var userprofitloss_EndDate = "<?php echo $output['param']['endDate'] ?>";
    var userprofitloss_Hierarchy = "&lt;a user_name=&#39;ping1&#39; page_index =&#39;1&#39; class =&#39;GetDataByPage&#39; href=&#39;javascript:&#39;&gt;本级&lt;/a&gt; &gt; 盈亏报表";
    var userprofitloss_username = "<?php echo $output['param']['username'] ?>";
    var userprofitloss_NameOrNickName = "<?php echo $output['param']['nickname'] ?>";
    init_userprofitloss();
</script>